package com.baitengsoft.patentapimonitor.api.service;

import com.baitengsoft.patentapimonitor.api.entity.FileUploadRecordEntity;
import com.baitengsoft.patentapimonitor.common.utils.PageResult;
import com.baitengsoft.patentapimonitor.common.utils.Res;
import com.baitengsoft.patentapimonitor.common.utils.SearchParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Chen 2018/2/8
 */
public interface FileUploadRecordService {
    PageResult<FileUploadRecordEntity> queryList(Integer platformid, SearchParam searchParam);

    Res delete(Integer platformid, Integer id);

    Res download(Integer platformid, String fileUrl, HttpServletResponse os);

    Res importPatInfoByPlatforomId(Integer platformid,MultipartFile file) throws Exception;

}
